package com.cc.ndmall.sys.service.impl;

import com.cc.ndmall.common.utils.PageUtils;
import com.cc.ndmall.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


import com.cc.ndmall.sys.dao.StorageDao;
import com.cc.ndmall.sys.entity.StorageEntity;
import com.cc.ndmall.sys.service.StorageService;


@Service("storageService")
public class StorageServiceImpl extends ServiceImpl<StorageDao, StorageEntity> implements StorageService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<StorageEntity> page = this.page(
                new Query<StorageEntity>().getPage(params),
                new QueryWrapper<StorageEntity>()
        );

        return new PageUtils(page);
    }

}